package com.example.figurehecheng.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.security.auth.Subject;

/**
 * <p>
 * 
 * </p>
 *
 * @author 宇科工作室
 * @since 2024-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("subscribe")
@ApiModel(value="Subscribe对象", description="")
public class Subscribe implements Serializable {

    /**
     * 状态: 0待同意，1同意，2拒绝, 3已完成
     */
    public static final Integer SUBJECT_TO_CONSENT = 0;
    public static final Integer AGREE = 1;
    public static final Integer REFUSE = 2;
    public static final Integer DONE = 3;

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "单号")
    private String orderNumber;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "预约时间")
    private LocalDateTime orderTime;

    @ApiModelProperty(value = "状态: 0待同意，1同意，2拒绝, 3已完成")
    private Integer state;

    @ApiModelProperty(value = "关联用户")
    private Integer userId;

    @ApiModelProperty(value = "人数")
    private Integer peopleNumber;

    @ApiModelProperty(value = "商家ID")
    private Integer shopId;

    @ApiModelProperty(value = "项目ID")
    private Integer programId;

    @ApiModelProperty(value = "时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime beginTime;

    @ApiModelProperty(value = "时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime endTime;


}
